package com.example.duanjunjie.learn.wk;

import android.content.Context;

import org.json.JSONObject;

import java.io.Serializable;

/**
 * Created by zourongbo on 2018/1/12.
 */

public class WKNoticeMessagePacket implements Serializable {
    public Context context;

    public int type;
    public JSONObject data;

    public WKNoticeMessagePacket(int type, JSONObject data) {
        this.type = type;
        this.data = data;
    }

    public void read(JSONObject jsonObject) {
        type = jsonObject.optInt("type");
        data = jsonObject.optJSONObject("data");
    }
}
